/*
 * @Author: atao
 * @Date: 2023-10-26 10:52:35
 * @LastEditTime: 2023-10-26 15:31:21
 * @FilePath: \三阶段项目\pili-pili-app\src\apis\registerApis.ts
 */
import { BASE64_UPLOAD_URL, USER_REGISTER_URL } from "../config/urls.cfg";
import request from "./ajax";

/** base64文件上传接口 */
export function base64UploadApi(file:string,name:string): Promise<any> {
    return request({
        url: BASE64_UPLOAD_URL,
        data:{file,name},
        method:'POST'
    })
}
//用户注册接口
export function userRegisterApi(data: UserInfo): Promise<any> {
    return request({
        url: USER_REGISTER_URL,
        data,
        method: 'PUT'
    })
}
